import RouteTable from "./router";
import Guard from "./router/guard";
import ToolBar from "./componets/toolBar";
import { useLocation } from "react-router-dom";
function App() {
  const { pathname } = useLocation();
  return (
    <Guard>
      <div>
        {/* 路由注册 */}
        <RouteTable />
        {pathname !== "/login" ? <ToolBar /> : null}
      </div>
    </Guard>
  );
}

export default App;
